package homework;

import java.util.Scanner;

public class T2 {
    public static void main(String[] args) {


        //绘制棋盘
        int[][] nums = new int[16][16];
        for(int i=0;i<nums.length;i++) {
            nums[0][i] = i;
            nums[i][0] = i;
        }

        PlayChess playChess = new PlayChess();

        game:while(true) {
            //打印棋盘
            playChess.show(nums);

            // 黑方下子
            boolean game=playChess.point(nums,1);

            if (game ==true){
                playChess.show(nums);
                break game;
            }

            //白方下子后打印一次
            playChess.show(nums);

           game =playChess.point(nums,2);
           if (game == true){
               playChess.show(nums);
               break game;
           }
        }
        //判断是否胜利
    }

}



